<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ProjectProgress
 *
 * @author atila
 */
class Zend_View_Helper_ProjectProgress extends Zend_View_Helper_Abstract {

   public function projectProgress($percent) {
      if ($percent > 0 && $percent < 25) {
         return 'bar-danger';
      } elseif ($percent >= 25 && $percent < 50) {
         return 'bar-warning';
      } elseif ($percent >= 50 && $percent < 75) {
         return 'bar-info';
      } elseif ($percent >= 75 && $percent <= 100) {
         return 'bar-success';
      } else {
         return '';
      }
   }
}

?>
